﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200035B RID: 859
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ContentPackageUnlockCsReq : IMessage<ContentPackageUnlockCsReq>, IMessage, IEquatable<ContentPackageUnlockCsReq>, IDeepCloneable<ContentPackageUnlockCsReq>, IBufferMessage
	{
		// Token: 0x17000B1E RID: 2846
		// (get) Token: 0x06002685 RID: 9861 RVA: 0x0006C0F4 File Offset: 0x0006A2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ContentPackageUnlockCsReq> Parser
		{
			get
			{
				return ContentPackageUnlockCsReq._parser;
			}
		}

		// Token: 0x17000B1F RID: 2847
		// (get) Token: 0x06002686 RID: 9862 RVA: 0x0006C0FB File Offset: 0x0006A2FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ContentPackageUnlockCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B20 RID: 2848
		// (get) Token: 0x06002687 RID: 9863 RVA: 0x0006C10D File Offset: 0x0006A30D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ContentPackageUnlockCsReq.Descriptor;
			}
		}

		// Token: 0x06002688 RID: 9864 RVA: 0x0006C114 File Offset: 0x0006A314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockCsReq()
		{
		}

		// Token: 0x06002689 RID: 9865 RVA: 0x0006C11C File Offset: 0x0006A31C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockCsReq(ContentPackageUnlockCsReq other) : this()
		{
			this.contentId_ = other.contentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600268A RID: 9866 RVA: 0x0006C141 File Offset: 0x0006A341
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockCsReq Clone()
		{
			return new ContentPackageUnlockCsReq(this);
		}

		// Token: 0x17000B21 RID: 2849
		// (get) Token: 0x0600268B RID: 9867 RVA: 0x0006C149 File Offset: 0x0006A349
		// (set) Token: 0x0600268C RID: 9868 RVA: 0x0006C151 File Offset: 0x0006A351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentId
		{
			get
			{
				return this.contentId_;
			}
			set
			{
				this.contentId_ = value;
			}
		}

		// Token: 0x0600268D RID: 9869 RVA: 0x0006C15A File Offset: 0x0006A35A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ContentPackageUnlockCsReq);
		}

		// Token: 0x0600268E RID: 9870 RVA: 0x0006C168 File Offset: 0x0006A368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ContentPackageUnlockCsReq other)
		{
			return other != null && (other == this || (this.ContentId == other.ContentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600268F RID: 9871 RVA: 0x0006C198 File Offset: 0x0006A398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ContentId != 0U)
			{
				num ^= this.ContentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002690 RID: 9872 RVA: 0x0006C1D7 File Offset: 0x0006A3D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002691 RID: 9873 RVA: 0x0006C1DF File Offset: 0x0006A3DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002692 RID: 9874 RVA: 0x0006C1E8 File Offset: 0x0006A3E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ContentId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.ContentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002693 RID: 9875 RVA: 0x0006C21C File Offset: 0x0006A41C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002694 RID: 9876 RVA: 0x0006C25A File Offset: 0x0006A45A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ContentPackageUnlockCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ContentId != 0U)
			{
				this.ContentId = other.ContentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002695 RID: 9877 RVA: 0x0006C28B File Offset: 0x0006A48B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002696 RID: 9878 RVA: 0x0006C294 File Offset: 0x0006A494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ContentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F76 RID: 3958
		private static readonly MessageParser<ContentPackageUnlockCsReq> _parser = new MessageParser<ContentPackageUnlockCsReq>(() => new ContentPackageUnlockCsReq());

		// Token: 0x04000F77 RID: 3959
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F78 RID: 3960
		public const int ContentIdFieldNumber = 4;

		// Token: 0x04000F79 RID: 3961
		private uint contentId_;
	}
}
